package com.hnluchuan.staff.common;

public enum Marry {
    // 请根据实际情况改成对应的值和备注
    Marry1(1, "未婚"),
    Marry2(2, "已婚"),
    Marry3(3,"离异");


    private int value;
    private String remark;

    private Marry(int value, String remark) {
        this.value = value;
        this.remark = remark;
    }

    public int getValue() {
        return value;
    }
    public String getRemark() {
        return remark;
    }

    public static Marry getByValue(int value) {
        for (Marry o : Marry.values()) {
            if (o.getValue() == value) {
                return o;
            }
        }
        return null;
    }
}
